const restify = require('restify')
const plugins = require('restify-plugins');
const routers = require('./routes');

const server = restify.createServer()
server.use(plugins.bodyParser())
server.use(plugins.queryParser())

routers.applyRoutes(server)

server.listen(8080, () => {
	console.log('%s listening at %s', server.name, server.url)
})
